Release 10.1A: OpenEdge Development:
.NET Open Clients
Temp-table examples
This section provides some code examples for temp-tables.
Note: These samples are not available on the Documentation and Samples CD or Progress Documentation Web site.Sample static temp-table
Example 4–1 is a static temp-table definition in a persistent procedure,
PaymentInfo.p.
For this parameter, ProxyGen generates the following:
Example 4–2 is a static temp-table definition in an external procedure,
setPaymentInfo.p.
Since the schema for these two static temp-table parameters is the same, ProxyGen uses the previously generated, strongly typed DataTable in the proxy method generated for this external procedure:
For
INPUTandINPUT-OUTPUTparameters, the .NET client code must supply an instance of the strongly typed DataTable object. ForOUTPUTparameters, the strongly typed DataTable variable must be declared, but the instance is created by Progress and returned to the .NET client.Sample TABLE-HANDLE parameter
Example 4–3 is a
TABLE-HANDLEparameter.
For this parameter, ProxyGen generates the following method in the proxy:
For
INPUTandINPUT-OUTPUTparameters, the .NET client code must supply an instance of theSystem.Data.DataTableobject, a strongly typed DataTable, or theProgress.Open4GL.ProDataTable. ForOUTPUTparameters, the DataTable variable must be declared, but the instance is created by Progress and returned to the .NET client.Sample .NET Open Client application using a temp-table
Example 4–4 and Example 4–5 show sample code for calling a procedure with a temp-table.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |